package com.zhq.zhq_blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhq.zhq_blog.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 *  用户Mapper接口
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT id,username,phone,icon_url FROM tb_user WHERE id = #{id}")
    User queryUserById(@Param("id") Integer userId);

}
